import TestWorker from './worker/testWorker.js?worker'
const worker = new TestWorker()
worker.onmessage = (msg) => {
  console.log('work msg', msg.data)
}
worker.onerror = (err) => {
  console.log('work err', err)
}
worker.postMessage(1)
